/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.proracing.app.eitinerer.activities;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

/**
 *
 * @author mateusz
 */
public class mc_MainOrganizerActivity extends Activity {
    
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.organizer_main); 
        
        Button lr_ButtonAdd = (Button)findViewById(R.id.addrally);
        lr_ButtonAdd.getBackground().setAlpha(90);                           
        lr_ButtonAdd.setOnClickListener(addListener); 
    
        Button lr_ButtonDisplay = (Button)findViewById(R.id.disprally);
        lr_ButtonDisplay.getBackground().setAlpha(90);                           
        lr_ButtonDisplay.setOnClickListener(displayListener);
        
        Button lr_ButtonEdit = (Button)findViewById(R.id.editrally);
        lr_ButtonEdit.getBackground().setAlpha(90);                           
        lr_ButtonEdit.setOnClickListener(editListener); 
        
        Button lr_ButtonHandle = (Button)findViewById(R.id.handle);
        lr_ButtonHandle.getBackground().setAlpha(90);                           
        lr_ButtonHandle.setOnClickListener(handleListener); 
    }   
    
    private final View.OnClickListener addListener = new View.OnClickListener() {
        public void onClick(View v) {
            Intent lr_Intent = new Intent(mc_MainOrganizerActivity.this, mc_CreateRallyActivity.class);
            startActivity(lr_Intent);
        }
    };
    
    private final View.OnClickListener displayListener = new View.OnClickListener() {
        public void onClick(View v) {
        }
    };
    
    private final View.OnClickListener editListener = new View.OnClickListener() {
        public void onClick(View v) {
        }
    };
    
    private final View.OnClickListener handleListener = new View.OnClickListener() {
        public void onClick(View v) {
            //dodawanie czasów online
        }
    };
}
